package org.ufinity.hsms.module.setting;

import org.ufinity.hsms.common.utils.SystemUtils;
import org.ufinity.hsms.module.TabGroupActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;

public class SettingStackActivity extends TabGroupActivity{  
	String id = "SettingActivity";
	
	 @Override
		public void onCreate(Bundle savedInstanceState) {
			super.onCreate(savedInstanceState);
			startChildActivity(id, new Intent(getParent(),
					SettingActivity.class));
		}	
		
		@Override
		public boolean dispatchKeyEvent(KeyEvent event) {
			int length = mIdList.size();
			if (length > 0) {
				if(mIdList.get(length - 1).equals(id)){
					SystemUtils.openOptionsDialog(getParent());
				}
			}
			return super.dispatchKeyEvent(event);
		}
    
    
}
